05. Check For Understanding: Functions

Check for Understanding

Let's do a quick review of concepts learned so far. As before, you will see some earlier concepts being revisited. It's important to review older concepts along with newer ones, to keep a firm grasp on your foundations.

QUIZ QUESTION::

Below are some types of statements you have used. Can you match each piece of code with the type of statement?

ANSWER CHOICES:



CODE

TYPE OF STATEMENT

for loop

Assignment statement

while loop

Method call

Not a statement

SOLUTION:

CODE

TYPE OF STATEMENT

for loop

Assignment statement

while loop

Method call

Not a statement

QUIZ QUESTION::

Match each term with its description.

ANSWER CHOICES:



DESCRIPTION

TERM

Function call

Function

Method

Argument

SOLUTION:

DESCRIPTION

TERM

Function call

Function

Method

Argument

Here is a call to a function named print_list_elements:
print_list_elements(list)
Which part of this code is referred to as an argument?

SOLUTION: `list`

Here is a call to a function named print_list_elements:
print_list_elements()
Which part of this code is referred to as an argument?

SOLUTION: There is no argument in this function call